package com.hb.core.pojo.project.section.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.project.section.entity.TradeSecondQuotationBidInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;


/**
 * <p>
 * 二次报价标段信息表DTO
 * </p>
 *
 * @author fengbin
 * @since 2022-02-21
 */
@Getter
@Setter
public class TradeSecondQuotationBidInfoDto extends TradeSecondQuotationBidInfo {


    @ApiModelProperty(value = "轮次名称")
    private String turnsName;

    @ApiModelProperty(value = "报价截止时间(前端不需要转格式)")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDate;

    @ApiModelProperty(value = "报价时长")
    private Integer endStrTime;

    @ApiModelProperty(value = "报价供应商信息集合")
    private List<BidSectionOfferDTO> bidSectionOfferList;

    @ApiModelProperty(value = "是否正在报价（ 0， 已报价  1，正在报价）")
    private Integer inQuotation;

    @ApiModelProperty(value = "标段名称")
    private String sectionName;

    @ApiModelProperty(value = "标段编号")
    private String sectionCode;
}
